int maxPower(char* s) {
    int max=1;
    int current=1;
    for(int i=1;i<strlen(s);i++)
    {
        if(s[i]==s[i-1])
        current++;
        else
            current=1;
        if(current>=max)
        max=current;
    }
    return max;
}